// import Login from './views/login/login.vue'
import Home from './views/home/home.vue'
import Index from './views/index.vue'
import SystemManage from './views/powerManage/systemManage.vue'
import MenuManage from './views/powerManage/menuManage.vue'
import FunManage from './views/powerManage/funManage.vue'
import RoleManage from './views/powerManage/roleManage.vue'
import UserInfoManage from './views/powerManage/userInfoManage.vue'


let routes = [
    // {
    //     path: '/',
    //     redirect: '/login',
    //     hidden: true,
    // },
    // {
    //     path: '/login',
    //     name: 'login',
    //     hidden: true,
    //     component: Login,
    //     meta: { title: '登陆'}
    //
    // },
    {
        path: '/',
        component: Index,
        name: '主页',
        meta: { title: '首页'},
        iconCls: 'home',
        leaf: true, //只有一个节点
        children: [
            { path: '/home',
                component: Home, name: '首页',meta: { title: '首页'} }
        ]
    }, {
        path: '/powerManage',
        component: Index,
        name: '权限管理',
        iconCls: 'gear-b',
        children: [
            {path: '/systemManage', component: SystemManage, name: '系统管理',meta: { title: '系统管理'}},
            {path: '/menuManage', component: MenuManage, name: '菜单管理',meta: { title: '菜单管理'}},
            {path: '/funManage', component: FunManage, name: '功能管理',meta: { title: '功能管理'}},
            {path: '/roleManage', component: RoleManage, name: '角色管理',meta: { title: '角色管理'}},
            {path: '/userInfoManage', component: UserInfoManage, name: '用户信息管理',meta: { title: '用户信息管理'}}
        ]
    }
]
export default routes;